package com.xyz.study.design_mode.i_bridge;

import com.xyz.study.design_mode.i_bridge.mode.*;

/**
 * 分开考虑：其一 ---- Bridge桥接模式
 * 角色：Client
 * 将类的功能层次结构和实现层次结构分离
 * @author XYZ
 * @version 1.0.0
 * @since 2021-01-26 21:25
 */
public class BridgeMain {

    public static void main(String[] args) {
        PrinterAbstraction printerA = new PrinterAbstractionPoint(new PrinterImplementorLinux());
        printerA.printAddress();
        System.out.println("--------------------------------------------------------------------");
        PrinterAbstraction printerB = new PrinterAbstractionPing(new PrinterImplementorWindows());
        printerB.printAddress();
    }
}
